package com.kaibes.platform.file.server;

import org.springframework.stereotype.Service;

import com.kaibes.orm.curd.QueryBuilder;
import com.kaibes.web.api.ResponseServiceImpl;

@Service
public class FileClientService extends ResponseServiceImpl<FileClient> {

    public FileClient findByUserId(Integer userId) {
        return get(QueryBuilder.newBuilder().eq("user_id", userId).build());
    }
    
    public int updateByUserId(Object obj, Integer userId) {
        return update(obj, QueryBuilder.newBuilder().eq("user_id", userId).build());
    }
    
}
